org.hudsonci.rest.common
Class ProjectNameCodec

java.lang.Object
  extended by org.hudsonci.rest.common.ProjectNameCodec

@Named
@Singleton
public class ProjectNameCodec
extends Object

Helper to encode/decode project names. This is a hack since '/' causes problems with Apache HTTPD reverse proxy, so its translated to '@', which must be decoded before being used internally to lookup projects.

Since:
2.1.0
Author:
Jason Dillon

Constructor Summary
ProjectNameCodec()
           
 
Method Summary
 String decode(String projectName)
           
 String encode(String projectName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectNameCodec

public ProjectNameCodec()
Method Detail

encode

public String encode(String projectName)

decode

public String decode(String projectName)


Copyright © 2004-2011 Hudson. All Rights Reserved.